var salary=prompt('请输入您的工资')
salary =parseInt(salary)
console.log(
    salary>5000?(salary>8000?(salary-8000)*0.1:(salary-5000)*0.05):'不需要交税'
)